﻿using System.Web;
using System.Web.Optimization;

namespace TanWeb
{
    public class BundleConfig
    {
        // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                       "~/Scripts/Common/jquery-{version}.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                        "~/Scripts/Common/jquery-ui-{version}.js",
                        "~/Scripts/Common/jquery.ui.core.js",
                        "~/Scripts/Common/jquery.ui.widget.js",
                        "~/Scripts/Common/jquery.ui.mask.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                        "~/Scripts/Common/jquery.unobtrusive*",
                        "~/Scripts/Common/jquery.validate*"));

            bundles.Add(new ScriptBundle("~/bundles/script").Include(
                        "~/Scripts/Common/script.js*",
                        "~/Scripts/jqplot/*.js",
                        "~/Scripts/jqplot/plugins/*.js"));

            bundles.Add(new ScriptBundle("~/bundles/jquerymask").Include(
                        "~/Scripts/Common/jquery.inputmask.js",
                        "~/Scripts/Common/jquery.inputmask.*"));

            bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                        "~/Scripts/Common/modernizr-*"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                "~/Content/css/site.css",
                "~/Content/css/jquery.jqplot.css"));

            bundles.Add(new StyleBundle("~/Content/css/mobile").Include("~/Content/css/m_site.css"));
            bundles.Add(new StyleBundle("~/Content/css/map").Include("~/Content/css/map_site.css"));
            bundles.Add(new StyleBundle("~/Content/css/login").Include("~/Content/css/login.css"));

            bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
                        "~/Content/themes/base/jquery.ui.core.css",
                        "~/Content/themes/base/jquery.ui.resizable.css",
                        "~/Content/themes/base/jquery.ui.selectable.css",
                        "~/Content/themes/base/jquery.ui.accordion.css",
                        "~/Content/themes/base/jquery.ui.autocomplete.css",
                        "~/Content/themes/base/jquery.ui.button.css",
                        "~/Content/themes/base/jquery.ui.dialog.css",
                        "~/Content/themes/base/jquery.ui.slider.css",
                        "~/Content/themes/base/jquery.ui.tabs.css",
                        "~/Content/themes/base/jquery.ui.datepicker.css",
                        "~/Content/themes/base/jquery.ui.progressbar.css",
                        "~/Content/themes/base/jquery.ui.theme.css"));
        }
    }
}